package com.itaem.community.modules.infrastructure.company.department.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * <p>项目名称: community </p>
 * <p>文件名称: WorkerHireDTO </p>
 * <p>描述: [类型描述] </p>
 * <p>创建时间: 2020/10/31 </p>
 * <p>作者信息: tomato</p>
 *
 * @author tomato
 * @version v1.0
 */
@Data
@NotNull(message = "请上传数据")
@ApiModel("新增部门员工实体")
public class WorkerHireDTO {

    @NotNull(message = "要添加的工作人员id不能为空")
    @ApiModelProperty(value = "工作人员id")
    private Integer workerId;

    @NotNull(message = "要加入的部门id不能为空")
    @ApiModelProperty(value = "所属部门id")
    private Integer departmentId;
}
